<h1>Listing drugs</h1>
<%= link_to 'Home', root_path %> | <%= link_to 'New Drug', new_drug_path %>
</br>
<table border="1">
  <thead>
    <tr>
      <th>Code</th>
      <th>Name</th>
      <th>Price per item</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <% @drugs.each do |drug| %>
      <tr>
        <td><%= link_to drug.code, drug %></td>
        <td><%= link_to drug.name, drug %></td>
        <td><%= drug.price_per_item %></td>
        <td><%= drug.description %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>


